package com.minis;

import com.minis.beans.BeansException;
import com.minis.context.CLassPathXmlApplicationContext;
import com.minis.test.Aservice;
import com.minis.test.BaseService;

public class Test1 {
    public static void main(String[] args) throws BeansException {
        CLassPathXmlApplicationContext ctx = new CLassPathXmlApplicationContext("beans.xml", true);
        Aservice aservice = (Aservice) ctx.getBean("aService");
        aservice.sayHello();
        BaseService baseService = (BaseService) ctx.getBean("baseService");
        baseService.sayHello();
    }
}
